package com.cloud.pole.common.exception;

/**
 * 基础异常类
 */
public class BaseException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    private int status = 0;

    public int getStatus() {
        return status;
    }


    public BaseException() {
    }

    public BaseException(int status, String message, Object... args) {
        super(String.format(message, args));
        this.status = status;
    }

    public BaseException(int status, String message) {
        super(message);
        this.status = status;
    }

    public BaseException(String message) {
        super(message);
    }

    public BaseException(String message, Throwable cause) {
        super(message, cause);
    }

    public BaseException(Throwable cause) {
        super(cause);
    }

    public BaseException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
